<div class="row-fluid">             
    <div class="span12">   
        <div class="table_head"><h6><i class="<?php echo @$header_icon; ?>"></i><?php echo $header_title; ?></h6></div>                 

        <div class="block-fluid">
            <table cellpadding="0" cellspacing="0" width="100%" class="<?php echo (isset($tableClass) && $tableClass!='')?$tableClass:'data'?>">
                <thead>
                    <tr>   
                        <?php
                        foreach ($header as $h => $val)
                            echo '<th>' . $val . '</th>';
                        if (@$showEdit || @$showDelete)
                            echo '<th>Action</th>';
                        ?>                                    
                    </tr>
                </thead>
                <tbody>
                    <?php
                    foreach ($datas as $keys => $vals) {
                        if ($ID >= 0) {
                            $mID = $vals[$ID];
                            unset($vals[$ID]);
                        } else {
                            $mID = 0;
                        }
                        echo '<tr id="' . $mID . '">';

                        foreach ($vals as $key => $val)
                            echo '<td>' . $val . '</td>';
                        if (@$showEdit || @$showDelete) {
                            echo '<td class="option btn-group">';
                            if (@$showEdit)
                                echo '<a href="' . $this->url_edit . $mID . '" class="btn btn-mini"><i class="icon-pencil"></i></a>';
                            if (@$showDelete)
                                echo '<a class="btn btn-mini po" rel="popover" data-placement="left" data-content="<a class=\'btn btn-danger po-delete ajax-silent\' href=\'' . $this->url_delete . $mID . '\'>Yes I\'m sure</a> <button class=\'btn po-close\'>No</button> <input type=\'hidden\' name=\'td-id\' class=\'id\' value=\'' . $mID . '\'>" data-original-title="<b>Are you sure?</b>"><i class="icon-trash"></i></a>';

                            echo '</tr>';
                        }
                    }
                    ?>
                </tbody>
                <tfoot>
                    <tr>
                        <td colspan="<?php echo (isset($vals)) ? count($vals) + 2 : 2; ?>"><?php echo @$this->pagination->create_links(); ?></td>
                    </tr>
                </tfoot>
            </table>
        </div>
    </div>                                

</div>